import request from '@/utils/request'
export default {
    save(video) {
        return request({
            url: `/eduservice/video`,
            method: 'post',
            data:video
        })
    },
    update(video) {
        return request({
            url: `/eduservice/video`,
            method: 'put',
            data:video
        })
    },
    delete(videoId) {
        return request({
            url: `/eduservice/video/${videoId}`,
            method: 'delete',
        })
    },
  
    getVideo(id) {
        return request({
            url: `/eduservice/video/${id}`,
            method: 'get',
        })
    },

    //eduvod
    deleteVideo(videoId) {
        return request({
            url: `/eduvod/video/delete/${videoId}`,
            method: 'delete',
        })
    },
}